<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <style>
        #parent {
            width: 200px;
            height: 200px;
            background-color: lightblue;
        }
    </style>
</head>

<body>
    <!-- 事件冒泡：给父元素和子元素绑定相同的事件，子元素执行事件的时候父元素的事件也会执行 -->
    <div id="parent">
        <div class="one">one</div>
        <div class="one">two</div>
        <div class="one">three</div>
    </div>

    <script>
        var parent = document.querySelector("#parent")
        parent.onclick = function () {
            console.log(this);
        }
    </script>
</body>

</html>